﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eTerm.Platform.Web
{
    public partial class PermissionTree : BasePage
    {
        protected override void InitEasyUI()
        {
            BaseRegisterStartupScript<UpdatePanel>(GetUpdatePanel(@"pnlContent") as UpdatePanel, trPermission.ClientID, string.Format(@"$('#{0}').tree({{checkbox:true, url:'../ISAPI/SysUserAPI.ashx?Action=permissiontree&UID={1}',onCheck:function(node,checked){{  $.post('../ISAPI/SysUserAPI.ashx',{{UID:{1},PID:node.id,Action:'addpermission'}});  }}  }});", trPermission.ClientID, Request.Form["ID"]), true);
        }
    }
}
